<?php

namespace Emoney\EpayBundle\Form\Type;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of SitenameType
 *
 * @author FFOZEU
 */
class SitenameType extends AbstractType
{
    public function buildForm(FormBuilder $builder, array $options)
    {
		$builder->add('name', 'text', array('max_length' => 120, 'required' => true, 'label' => 'Nom', 'trim' => true, 'read_only' => false, 'error_bubbling' => false));
		$builder->add('logo', 'text', array('max_length' => 120, 'required' => false, 'label' => 'Logo', 'trim' => true, 'read_only' => false, 'error_bubbling' => false));
		$builder->add('url', 'url', array('default_protocol' => 'http', 'max_length' => 120, 'required' => true, 'label' => 'Site web', 'trim' => true, 'read_only' => false, 'error_bubbling' => false));

    }

    public function getName()
    {
        return 'sitename';
    }
    
    public function getDefaultOptions(array $options)
    {
        return array(
            'data_class' => 'Emoney\EpayBundle\Entity\Sitename',
        );
    }
}

?>
